/*
 * Copyright 2020-2021 redragon.dongbin
 *
 * This file is part of redragon-erp/赤龙ERP.

 * redragon-erp/赤龙ERP is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.

 * redragon-erp/赤龙ERP is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with redragon-erp/赤龙ERP.  If not, see <https://www.gnu.org/licenses/>.
 */
package com.erp.ledger.account.service;

import java.util.List;

import org.redragon.framework.hibernate.DaoCRUDIF;
import com.erp.ledger.account.dao.model.GLCodeCombinations;
import com.erp.ledger.account.dao.model.GLCodeCombinationsCO;

public interface GLCodeCombinationsService extends DaoCRUDIF<GLCodeCombinations, GLCodeCombinationsCO> {
    
    //获取会计科目结构的编码（如果没有则插入）
    public abstract String getOrInsertGLCodeCombinations(GLCodeCombinations glCodeCombinations);
    
    //获取会计科目结构某一段的描述
    public abstract String getGLCodeCombinationsSingleSegmentDesc(String segmentField, String segmentValue);
    
    //获取会计科目结构的段值组合
    public abstract String getGLCodeCombinationsSegment(String codeCombinationCode);
    
    //获取会计科目结构的段值组合描述
    public abstract String getGLCodeCombinationsSegmentDesc(String codeCombinationCode);
    
    //根据段值查找所有匹配的会计科目结构组合
    public List<GLCodeCombinations> getGLCodeCombinationsBySegmentValue(String segmentNum, String segmentValue, boolean isLike);
}
